<?php

	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Venteadr extends Baseobj{

		var $id;
		var $raison;
		var $entreprise;
		var $nom;
		var $prenom;
		var $adresse1;
		var $adresse2;
		var $adresse3;
		var $cpostal;
		var $ville;
		var $tel;
		var $pays;

		const TABLE="venteadr";
		var $table=self::TABLE;

		var $bddvars = array("id", "raison", "entreprise", "nom", "prenom", "adresse1", "adresse2", "adresse3", "cpostal", "ville", "tel", "pays");

		function __construct($id = 0){
			parent::__construct();

			if($id > 0)
 			  $this->charger($id);
		}

		function charger($id){
			return $this->getVars("select * from $this->table where id=\"$id\"");
		}
	}
?>